<?php

use think\Env;

return [
    'default' => [
        'host' => 'stomp://' . Env::get("rabbitmq_host", '127.0.0.1') . ':' . Env::get("rabbitmq_stomp_port", 61613),
        'options' => [
            'vhost' => Env::get("rabbitmq_vhost", '/'),
            'login' => Env::get("rabbitmq_user", 'guest'),
            'passcode' => Env::get("rabbitmq_password", 'guest'),
            'debug' => (bool)Env::get("STOMP_QUEUE_DEBUG", false),
            'heart_beat' => [Env::get("RABBITMQ_HEART_BEAT_INTERVAL", 20000), Env::get("RABBITMQ_HEART_BEAT_INTERVAL", 20000)],
        ],
        'amqp' => [
            'host' => Env::get("rabbitmq_host", '127.0.0.1'),
            'port' => Env::get("rabbitmq_amqp_port", 5672),
            'namespace' => Env::get("belong_system", ''),
            'exchange_name' => Env::get("rabbitmq_exchange_name", 'exchange'),
            'exchange_delay' => (bool)Env::get("rabbitmq_exchange_delay", true)
        ]
    ]
];
